{extend name="common@base" /}
{block name="content"}
<section class="content">
  <form class="form" method="post" id="password">
    <div class="box box-primary">
      <div class="box-body">
        <div class="row">
          <div class="col-xs-12 col-sm-6">
            <div class="form-group">
              <label>一卡通</label>
              <input name="form[username]" type="text" class="form-control" value="{$row.username}" required>
            </div>
            <div class="form-group">
              <label>真实姓名</label>
              <input name="form[realname]" type="text" class="form-control" value="{$row.realname}" required>
            </div>

            <div class="form-group">
              <label>是否启用</label>
              <div class="checkbox">
                <label>{:form_checkbox('form[status]',1,$row ? $row.status : true)}启用</label>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="box-footer">
        <button type="submit" class="btn btn-primary js-ajax-submit" data="">保存</button>
        <a href="javascript:history.back(-1)" class="btn btn-default ">返回</a>
      </div>
    </div>
  </form>
</section>
{/block}
{block name="page_script"}
<script>
  require(["layer_config", "ajaxForm"], function (layer) {
  });
</script>
{/block}